package com.iuhao.order.feginclient;

import com.iuhao.order.feginclient.fallback.UserServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by yanhao on 2018/10/30.
 */
@FeignClient(value = "orange-user", fallback = UserServiceClientFallback.class)
public interface UserServiceClient {

    @RequestMapping(value = "/user/hi", method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);

    @RequestMapping(value = "/user/test", method = RequestMethod.GET)
    String getProductionModel();
}
